-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error code cleanup and enforce checks #86137
Conversation
Some changes occurred in diagnostic error codes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with nit resolved
fb44052
to
03330ff
Compare
@bors: r=Mark-Simulacrum |
📌 Commit 03330ff9d1d88656c4a02f211b995b16e00b510d has been approved by |
⌛ Testing commit 03330ff9d1d88656c4a02f211b995b16e00b510d with merge 74a7631fe4e17c36de0b42047db0911e316384ea... |
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
03330ff
to
20f1b1c
Compare
This is intriguing: when running locally, no issue. Well I rebased, let's try again... @bors: r=Mark-Simulacrum |
📌 Commit 20f1b1c has been approved by |
⌛ Testing commit 20f1b1c with merge d2f2573cc638950c51c6f6e0bbf61662c99d0c43... |
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
The problem was that I checked for paths containing slashes whereas windows use backslash (which also explains why I couldn't trigger the error locally). @bors: r=Mark-Simulacrum |
📌 Commit 0ab9d01 has been approved by |
⌛ Testing commit 0ab9d01 with merge 64ddfb3ccbb149f174f2ad8ed873cf88e7fa5c34... |
@bors retry rolled-up |
Rollup of 8 pull requests Successful merges: - rust-lang#86137 (Error code cleanup and enforce checks) - rust-lang#86296 (Add documentation for various THIR structs) - rust-lang#86415 (Document associativity of iterator folds.) - rust-lang#86533 (Support lowercase error codes in `--explain`) - rust-lang#86536 (Edition 2021 enables disjoint capture) - rust-lang#86560 (Update cargo) - rust-lang#86561 (chore(rustdoc): Remove unused impl block) - rust-lang#86566 (Use `use_verbose` for `mir::Constant`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #86097.
It now checks if an error code is unused, and if so, will report an error if the error code wasn't commented out in the
error_codes.rs
file. It also checks that the constant used in the tidy check is up-to-date.r? @Mark-Simulacrum